package com.flower.pojo;

import java.util.Date;

public class Order {
	private int oid;			//订单编号
	private int uid;			//用户编号
	private int pid;    		//商品编号
	private String onum; 		//订单号
	private String receiver;	//收货人姓名
	private String address;		//收货地址
	private String tel;			//联系电话
	private Date time;			//下单时间
	private int ostate;			//订单状态——>未支付：0；已支付：1
	private double ototal;		//支付金额
	public int getOid() {
		return oid;
	}
	public void setOid(int oid) {
		this.oid = oid;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getOnum() {
		return onum;
	}
	public void setOnum(String onum) {
		this.onum = onum;
	}
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public int getOstate() {
		return ostate;
	}
	public void setOstate(int ostate) {
		this.ostate = ostate;
	}
	public double getOtotal() {
		return ototal;
	}
	public void setOtotal(double ototal) {
		this.ototal = ototal;
	}
	@Override
	public String toString() {
		return "Order [oid=" + oid + ", uid=" + uid + ", pid=" + pid
				+ ", onum=" + onum + ", receiver=" + receiver + ", address="
				+ address + ", tel=" + tel + ", time=" + time + ", ostate="
				+ ostate + ", ototal=" + ototal + "]";
	}
}
